package com.study.pojo;

/**
 * 章节和图书的点赞表
 * @Author Miss kun
 * @Date 2020/10/8 19:58
 * @Version 1.0
 */
public class Likes {
    private Integer id;
    private Integer book_id;
    private Integer chapter_id;

    /**
     * 点赞数目
     */
    private Integer number;

    public Likes(Integer book_id, Integer chapter_id, Integer number) {
        this.book_id = book_id;
        this.chapter_id = chapter_id;
        this.number = number;
    }

    public Likes() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public Integer getChapter_id() {
        return chapter_id;
    }

    public void setChapter_id(Integer chapter_id) {
        this.chapter_id = chapter_id;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Likes{" +
                "id=" + id +
                ", book_id=" + book_id +
                ", chapter_id=" + chapter_id +
                ", number=" + number +
                '}';
    }
}
